package com.syh.jn.scm.domain.downstream.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.downstream.entity.purchase.DownPurchaseReturnOrder;

public class DownPurchaseReturnOrderEvent extends DomainEvent<DownPurchaseReturnOrder> {
    //下游采购退货单创建事件
    public static final String DOWN_PURCHASE_RETURN_ORDER_CREATED = "downstreamPurchaseReturnOrderCreated";

    public static DownPurchaseReturnOrderEvent buildDownPurchaseReturnOrderCreated(Object[] values){
        DownPurchaseReturnOrderEvent downPurchaseReturnOrderEvent = new DownPurchaseReturnOrderEvent();
        downPurchaseReturnOrderEvent.eventName = DOWN_PURCHASE_RETURN_ORDER_CREATED;
        downPurchaseReturnOrderEvent.values = values;
        return downPurchaseReturnOrderEvent;
    }

    //下游采购退货单修改事件
    public static final String DOWN_PURCHASE_RETURN_ORDER_UPDATED = "downstreamPurchaseReturnOrderUpdated";

    public static DownPurchaseReturnOrderEvent buildDownPurchaseReturnOrderUpdated(Object[] values){
        DownPurchaseReturnOrderEvent downPurchaseReturnOrderEvent = new DownPurchaseReturnOrderEvent();
        downPurchaseReturnOrderEvent.eventName = DOWN_PURCHASE_RETURN_ORDER_UPDATED;
        downPurchaseReturnOrderEvent.values = values;
        return downPurchaseReturnOrderEvent;
    }

    //下游采购退货单取消事件
    public static final String DOWN_PURCHASE_RETURN_ORDER_CANCEL = "downstreamPurchaseReturnOrderCancel";

    public static DownPurchaseReturnOrderEvent buildDownPurchaseReturnOrderCancel(Object[] values){
        DownPurchaseReturnOrderEvent downPurchaseReturnOrderEvent = new DownPurchaseReturnOrderEvent();
        downPurchaseReturnOrderEvent.eventName = DOWN_PURCHASE_RETURN_ORDER_CANCEL;
        downPurchaseReturnOrderEvent.values = values;
        return downPurchaseReturnOrderEvent;
    }
}
